package bean;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import util.IsbnDeserializer;
import lombok.Data;

@Data
public class Book {

  private long id;

  private String name;

  private String author;

  @JsonDeserialize(using = IsbnDeserializer.class)
  private BigInteger isbn;

  private List<String> tags;

  private LocalDate pubDate;

  private BigDecimal price;
}
